home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import java.io.File;
- import java.io.IOException;
- import javax.swing.AbstractAction;
- import javax.swing.JFileChooser;
- import javax.swing.JOptionPane;
-
- public class BasicFileChooserUI$NewFolderAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicFileChooserUI this$0;
-
- protected BasicFileChooserUI$NewFolderAction(BasicFileChooserUI var1) {
- super("New Folder");
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- JFileChooser var2 = this.this$0.getFileChooser();
- File var3 = var2.getCurrentDirectory();
- Object var4 = null;
-
- try {
- var7 = var2.getFileSystemView().createNewFolder(var3);
- } catch (IOException var6) {
- JOptionPane.showMessageDialog(var2, BasicFileChooserUI.access$0(this.this$0) + BasicFileChooserUI.access$1(this.this$0) + var6, BasicFileChooserUI.access$0(this.this$0), 0);
- return;
- }
-
- var2.rescanCurrentDirectory();
- var2.ensureFileIsVisible(var7);
- }
- }
-